package com.party.admin.web.controller.preview;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 预览
 */

@Controller
@RequestMapping(value = "/phone/preview")
public class PreviewController {

    @RequestMapping(value = "")
    public ModelAndView preview(String url) {
        ModelAndView mv = new ModelAndView("preview/phonePreview");
        mv.addObject("url", url);
        return mv;
    }

    @RequestMapping(value = "/zc")
    public ModelAndView previewZc(String url, String type) {
        ModelAndView mv = new ModelAndView("preview/phonePreview");
        mv.addObject("url", url + "&type=" + type);
        return mv;
    }
}
